import request from '@/router/axios'

export function getCategoryType(data) {
    return request({
        url: '/goods/api/ManGoodsType/GetDropType',
        method: 'post',
        data
    })
}

export function getCategoryList(data) {
    return request({
        url: '/goods/api/ManGoodsType/GetList',
        method: 'post',
        data
    })
}

export function addCategory(data) {
    return request({
        url: '/goods/api/ManGoodsType/Add',
        method: 'post',
        data
    })
}

export function updateCategory(data) {
    return request({
        url: '/goods/api/ManGoodsType/Update',
        method: 'post',
        data
    })
}

export function deleteCategory(data) {
    return request({
        url: '/goods/api/ManGoodsType/Delete',
        method: 'post',
        data
    })
}

// /goods/api​/ManGoodsOpLog​/GetOperateList
export function getOperateList(data) {
    return request({
        url: '/goods/api/ManGoodsOpLog/GetOperateList',
        method: 'post',
        data
    })
}
